package com.sso.server.util;

import java.awt.*;
import java.util.Random;

public class IdUtil {

    public static String gen6Num(){
        Random random=new Random();
        String source[] = new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
        String sRand = "";
        for (int i = 0; i < 6; i++) {
            String rand = source[random.nextInt(source.length-1)];
            sRand += rand;
        }
        return sRand;
    }
}
